Package com.cisco.pt.ipc.sim.impl
Class EmailServerImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.EmailServerImpl
- All Implemented Interfaces:
IPCObject,EmailServer,Process
Information provided by the PKI file:
\class EmailServer
\brief EmailServer is the process that handles the email server.
\example network().getDevice("Server0").getProcess("EmailServer")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionEmailServerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanInformation provided by the PKI file:voidchangePassword(String name, String newpassword) Information provided by the PKI file:booleandeleteUser(String name) Information provided by the PKI file:Information provided by the PKI file:getEmailUser(String username) Information provided by the PKI file:voidupdateAllAccounts(String parm1) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
EmailServerImpl
public EmailServerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
addUser
Information provided by the PKI file:
\brief Adds an email user with the specified username and password. \param name, the username for the email user. \param password, the password for the email user. \return bool, true if successful, otherwise false.- Specified by:
addUserin interfaceEmailServer- Parameters:
name- Takes in a parameter of namepassword- Takes in a parameter of password- Returns:
- boolean Returns a boolean
-
deleteUser
Information provided by the PKI file:
\brief Removes the email user with the specified username. \param name, the username of the email user of interest. \return bool, true if successful, otherwise false.- Specified by:
deleteUserin interfaceEmailServer- Parameters:
name- Takes in a parameter of name- Returns:
- boolean Returns a boolean
-
changePassword
Information provided by the PKI file:
\brief Changes the password of the email user with the specifed username. \param name, the username of the email user of interest. \param newpassword, the new password for the email user.- Specified by:
changePasswordin interfaceEmailServer- Parameters:
name- Takes in a parameter of namenewpassword- Takes in a parameter of newpassword
-
getEmailUser
Information provided by the PKI file:
\brief Returns the email user with specified username. \param username, the username of the email user of interest. \return EmailUser, the EmailUser object with the specified username.- Specified by:
getEmailUserin interfaceEmailServer- Parameters:
username- Takes in a parameter of username- Returns:
- EmailUser Returns a EmailUser
-
getAllEmailAcctAsStrings
Information provided by the PKI file:
\brief Adds an email user with the specified username and password. \return vector<string>, Return is all email accounts. Each entry is in the format "name:password", like "jitu:jituPass".- Specified by:
getAllEmailAcctAsStringsin interfaceEmailServer- Returns:
- List<String> Returns a List<String>
-
updateAllAccounts
Information provided by the PKI file:
\brief Updates passwords and adds user accounts based on the given formatted string. Format each entry as "name:password;". So two entries would be formated as "name1:password1;name2:password2;" If a username exists, the password will be set. If a username doesn't exist, the entry will be added.- Specified by:
updateAllAccountsin interfaceEmailServer- Parameters:
parm1- Takes in a parameter of parm1
-